package com.pl.lc.app.controller;

import com.pl.lc.app.service.VipFeign;
import com.pl.lc.common.param.UserVipAdd;
import com.pl.lc.common.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;


/**
 * @version 1.0
 * @Author 小胤
 * @Date 2024/6/11 19:21
 * @注释
 */
@RestController
@RequestMapping("/api/user/vip")
public class VipController {

    @Autowired
    private VipFeign vipFeign;
    @PostMapping("/save")
    public R save(@RequestBody UserVipAdd userVipAdd){
       return vipFeign.save(userVipAdd);
    }
    @RequestMapping("/my")
    public R my(){
        return vipFeign.my();
    }
}
